package com.itcast.activiti.event;

import com.itcast.activiti.domain.Attachment;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 添加附件
 */
@Getter
public class CreateAttachmentEvent extends ApplicationEvent {

    private Attachment attachment;
    /**
     * 任务id
     */
    private String taskId;
    /**
     * 流程id
     */
    private String processInstanceId;

    public CreateAttachmentEvent(Object source, String taskId, String processInstanceId, Attachment attachment) {
        super(source);
        this.taskId = taskId;
        this.processInstanceId = processInstanceId;
        this.attachment = attachment;
    }
}
